import Vue from 'vue'
import Router from 'vue-router'
import LoginPage from '../components/LoginPage.vue'
import ManagePage from '../components/ManagePage.vue'
import AllPage from '../components/AllPage.vue'
import ImgManage from '../components/ImgManage.vue'
import ThingManage from '../components/ThingManage.vue'
Vue.use(Router)

const routes = [
    {
        path:'/',
        name:'LoginPage',
        component:LoginPage
    },
    {
        path:'/about',
        name:'ManagePage',
        component:ManagePage
    },
    {
        path:'/all',
        name:'AllPage',
        component:AllPage
    },
    {
        path:'/img',
        name:'ImgManage',
        component:ImgManage
    },
    {
        path:'/thing',
        name:'ThingManage',
        component:ThingManage
    }
]

const router = new Router({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
  })
  export default router
  